import request from '../utils/request';

//查询消息列表
export async function getMsgList(data) {
    return request({
        url: '/message/list',
        method: 'post',
        data:data
    });
}

//发送消息
export async function sendMessage(data) {
    return request({
        url: '/message/send',
        method: 'post',
        data:data
    });
}

//修改聊天类型
export async function updateMsgType(data) {
    return request({
        url: '/message/type',
        method: 'post',
        data:data
    });
}
